myApp.controller('addAttrValueController',function($scope,$state,toaster,$serAttr) {
    var ctrl = this;
    ctrl.vm = {
        data:{}
    };
    var vm = {
        init:function(){
            $serAttr.getAttrList({
                attr_id:1,
                page:1,
                size:100
            }).then(function(res){
                if(res.code==1){
                    ctrl.vm.data = res.data;
                    console.log(res.data);
                }else{
                    toaster.info('提示',res.message);
                }
            })
        }
    };

    vm.init();
});